package com.guangzi.mapper;

import com.guangzi.common.Pager;
import com.guangzi.entity.BorrowApply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface BorrowApplyDao extends BaseDao {

    @Override
    List<Object> listPager(@Param("pager") Pager pager);

    List<Object> listPagerByUId(@Param("pager") Pager pager, @Param("query") Object obj);

    Long getCount( @Param("query") Object obj);

    //首页借款信息显示
    List<Object> souye1();
    List<Object> souye2();
    List<Object> souye3();
    List<Object> souye4();

    @Override
    List <Object> listPagerCriteria(@Param("pager") Pager pager, @Param("query") Object obj);

    @Override
    Long countCriteria(@Param("query") Object obj);

    @Override
    Long count();

    List<Object> listPagerById(@Param("pager") Pager pager, @Param("id") Long id);

    Long countById(@Param("id") Long id);

    List<Object> shResult(@Param("pager") Pager pager,@Param("uid")Long uid);

    Long shCount(@Param("uid")Long uid);

    @Override
    Object getById(Long id);

    //修改审核状态
    void updateState(BorrowApply borrowApply);

    @Override
    void save(Object obj);

    @Override
    void update(Object obj);

}
